#-*- coding:utf-8 -*-

import os
from handlers import HelloHandler,IndexHandler,LoginHandler,BlogHandler,EditHandler,DetailHandler

handlers = [
    (r"/hello", HelloHandler),
    #(r'^/myblog$', views.my_blog, name = 'myblog'),
    (r'^/edit$', EditHandler),
    #(r'^/edit/(?P<id>[0-9]+)$', views.edit, name = 'edit'),
    #(r'^/delete/(?P<id>[0-9]+)$', views.delete, name = 'delete'),
    (r'^/detail/(?P<id>\w+)$',DetailHandler),
    #(r'^/comment$', views.comment, name = 'comment'),
    (r'^/login$', LoginHandler),
    #(r'^/logout', views.logout, name = 'logout'),
    (r'^/blog$', BlogHandler),
    (r"/", IndexHandler)
]

settings = dict(
    template_path=os.path.join(os.path.dirname(__file__), "templates"),
    static_path=os.path.join(os.path.dirname(__file__), "static"),
    cookie_secret='AK5f4jVdRaG0bxE3E2pV/2eExlyV8Uxtg8aZSDf2at0=',
    debug=True,
    title = 'Tornado Blog',
    login_url = '/login'
)
